home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17171 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  38 lines

  1. Newsgroups: comp.lang.c++,comp.lang.c
  2. Path: tcnntp.trader.com!not-for-mail
  3. From: mg <mg@trader.com>
  4. Subject: Re: Colors in text-mode?????
  5. Message-ID: <31707A6B.A34@trader.com>
  6. Date: Sat, 13 Apr 1996 23:09:15 -0500
  7. References: <4jrlrf$jab@nosy.bart.nl> <4k4pl1$pea@host1.einstein.com.ar> <Dpp4xz.LqM@pgh.nauticom.net>
  8. X-Mailer: Mozilla 2.01 (Win95; I)
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12.  
  13. The Great Almighty Computer Programmer wrote:
  14. > Javier Kohen (jkohen@einstein.com.ar) wrote:
  15. > > painless@bart.nl (Steven van den Berg) wrote:
  16. > > >Does somebody know how I can get colors in the text-mode of C/C++? I
  17. > > Yes!!! Use direct screen writes. E-mail me and i'll write a function
  18. > > for you or explain you what's is this.
  19. > you dont need to do that!  OK, use textcolor(int) and textbackground(int)
  20. > and for output, use cprintf(char*)
  21. > thats what I use
  22. > --
  23. >           o O
  24. >     `\|||/
  25. >      (o o)
  26.  
  27. I agree. Think the MS version of these two is _settextcolor(int) and 
  28. _setbkcolor(int). With MS, think you also have to print to a buffer and 
  29. then use outtext(char *) to print it to the screen.
  30.  
  31.